{% extends "bootstrap/base.html" %}

{% block head %}
{{ super() }}
    <!-- Custom CSS -->
    <link href="static/css/landing-page.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="static/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
{% endblock %}

{% block title %}SmartLab{% endblock %}

{% block body %}

    <!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top topnav" role="navigation">
        <div class="container topnav">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand topnav" target="_blank" href="http://www.imooc.com/">Coding for Fun</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a target="_blank" href="http://it.jssvc.edu.cn/zs/xxjj.html">MySchool</a>
                    </li>
                    <li>
                        <a target="_blank" href="https://github.com/Zhiwei1996">Github</a>
                    </li>
                    <li>
                        <a href="/contact">Contact</a>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>


    <!-- Header -->
    <a name="about"></a>
    <div class="intro-header">
        <div class="container">

            <div class="row">
                <div class="col-lg-12">
                    <div class="intro-message">
                        <h1>Welcome SmartLaboratory</h1>
                        <h3><a href="/home" class="btn btn-primary btn-lg" role="button">Go home</a></h3>
                        <hr class="intro-divider">
                        <!-- <div class="row">
                            <div class="col-md-4"></div>
                            <div class="col-md-1"><a href="{{ url_for('user.temperature') }}"><img src="../static/images/temperature-md-blue.png"></a></div>
                            <div class="col-md-2"><a href="{{ url_for('user.humidity') }}"><img src="../static/images/humidity-md-blue.png"></a></div>
                            <div class="col-md-1"><a href="{{ url_for('user.lux') }}"><img src="../static/images/light-md-blue.png"></a></div>
                            <div class="col-md-4"></div>
                        </div> -->
                            <h4>Temperature:<span id='cur-temperature'></span>°C</h4>
                            <h4>Humidity:<span id='cur-humidity'></span>°</h4>

                    </div>
                </div>
            </div>

        </div>
        <!-- /.container -->
    </div>
    <!-- /.intro-header -->


    <!-- Page Content -->

    <!-- /.banner -->

    <!-- Footer -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <p>Designing
                        for <a href="/contact">Zhifeng</a> by<a href="https://zhiwei1996.github.io">@WangZhiwei</a></p>
                </div>
            </div>
        </div>
    </footer>

    {% block scripts %}
        {{ super() }}
        <script type="text/javascript" src='../static/js/ajax_index.js'></script>
        <script type="text/javascript">
            st();
        </script>
    {% endblock %}
{% endblock %}

